package com.zwcl.glass.tools.api.feign;

import com.zwcl.common.core.domain.entity.ApiResult;
import com.zwcl.glass.tools.api.dto.UserTagsDto;
import com.zwcl.glass.tools.api.entity.UserReport;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.stream.Collectors;

@FeignClient(value = "zwcl-glass-tools")
public interface UserReportFacadeClient {
    /**
     * 获取用户有的测试报告
     * @return
     */
    @PostMapping("/glass/tools/userData/userTags")
    ApiResult<UserReport> getUserReportTags(@RequestBody UserTagsDto dto);
}
